Skip to content

Conversation

cyndyishida
Copy link
Contributor

The clang compiler will implicitly enable the modules feature when in language mode c++20 or greater. This is for c++20 modules, which strictly differ from clang modules, but are conflated at times like when the compiler evaluates __has_feature(modules).
Since the sdks cannot cleanly build in this mode, disable it by default but allow explicit overrides.

rdar://156935289

The clang compiler will implicitly enable the modules feature when in
language mode c++20 or greater. This is for c++20 modules which strictly
differs from clang modules, but are conflated at times like when the
compiler evaluates `__has_feature(modules)`.
Since the sdks cannot cleanly build in this mode, disable it by default
but allow explicit overrides.

rdar://156935289
@cyndyishida
Copy link
Contributor Author

@swift-ci please test

@cyndyishida
Copy link
Contributor Author

Are the tests that are required to pass the ones triggered by swift-ci? The currently failing tests don't seem related to my change, but I can look deeper if they're unexpected.

@owenv
Copy link
Collaborator

owenv commented Oct 8, 2025

This is the second time I've seen these this morning, I think it;s some kind of infra issue

@cyndyishida cyndyishida merged commit 5b1014e into swiftlang:main Oct 8, 2025
85 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants